package com.wyh.config;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 汪宇航
 * @Date 2024/3/7 10:59
 * @Version 1.5
 */

@Configuration
public class Config {

    @Bean
    public EMService service() {

        EMProperties properties = EMProperties.builder()
                .setAppkey("1151240307169850#demo")
                .setClientId("YXA6zQLaO-gJTbipTppz1pp_YQ")
                .setClientSecret("YXA6zTjHXOXZ7wVw9VXKOxZ1jT3TsqI")
                .build();

        return new EMService(properties);
    }
}

